<?php
    $cur_action = $this->params['action'];
?>
<nav class="nav-primary hidden-xs bg-light lter" style="background-color: #ffffff">
    <ul class="nav">
        <!--<li >
            <a href="index.html"  >
                <i class="fa fa-dashboard icon">
                    <b class="bg-danger"></b>
                </i>
                        <span class="pull-right">
                          <i class="fa fa-angle-down text"></i>
                          <i class="fa fa-angle-up text-active"></i>
                        </span>
                <span>Workset</span>
            </a>
            <ul class="nav lt">
                <li >
                    <a href="index.html" >
                        <i class="fa fa-angle-right"></i>
                        <span>Dashboard v1</span>
                    </a>
                </li>
                <li >
                    <a href="dashboard.html" >
                        <i class="fa fa-angle-right"></i>
                        <span>Dashboard v2</span>
                    </a>
                </li>
            </ul>
        </li>-->
        <li class="<?php echo ($cur_action == 'index')? 'active': '' ;?> ">
            <a href="<?php echo $this->Html->url(array('action' => 'index')); ?>"  >
                <i class="fa fa-dashboard icon">
                    <b class="bg-danger"></b>
                </i>
                <span>Dashboard</span>
            </a>
        </li>
        <li class="<?php echo ($cur_action == 'history')? 'active': '' ;?>">
            <a href="<?php echo $this->Html->url(array('action' => 'history')); ?>"  >
                <i class="fa fa-list-ul icon">
                    <b class="bg-dark"></b>
                </i>
                <span>Transaction History</span>
            </a>
        </li>
        <li class="<?php echo ($cur_action == 'payments')? 'active': '' ;?>">
            <a href="<?php echo $this->Html->url(array('action' => 'payments')); ?>"  >
                <i class="fa fa-money icon">
                    <b class="bg-success"></b>
                </i>
                <span>Payment Of Fees</span>
            </a>
        </li>
        <li class="<?php echo ($cur_action == 'order')? 'active': '' ;?>">
            <a href="<?php echo $this->Html->url(array('action' => 'order')); ?>"  >
                <i class="fa fa-shopping-cart icon">
                    <b class="bg-info"></b>
                </i>
                <span>Purchase Services</span>
            </a>
        </li>
        <?php
        if($authuser['user_level'] == 'SRC'){
        ?>
            <li class="<?php echo ($cur_action == 'report')? 'active': '' ;?>">
                <a href="<?php echo $this->Html->url(array('action' => 'report')); ?>"  >
                    <i class="fa fa-bar-chart-o icon">
                        <b class="bg-primary"></b>
                    </i>
                    <span>SRC Report</span>
                </a>
            </li>
        <?php
        }
        ?>
        <li class="<?php echo ($cur_action == 'editprofile')? 'active': '' ;?>">
            <a href="<?php echo $this->Html->url(array('action' => 'editprofile')); ?>"  >
                <i class="fa fa-pencil icon">
                    <b class="bg-warning"></b>
                </i>
                <span>Edit Profile</span>
            </a>
        </li>
        <li >
            <a href="<?php echo $this->Html->url(array('action' => 'logout')); ?>"  >
                <i class="fa fa-power-off icon">
                    <b class="bg-black"></b>
                </i>
                <span>Logout</span>
            </a>
        </li>
    </ul>
</nav>